<?php
/**
 * Created by PhpStorm.
 * User: Da Xiong
 * Date: 2018/12/3
 * Time: 11:25
 */

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class CountsLog extends Model
{
    protected $table = 'counts_log';
    protected $fillable = [
        'id', 'cid', 'total','date'
    ];
    public $timestamps = false;

    public function count(){
        return $this->belongsTo('App\Models\Counts', 'cid', 'id');
    }
}